@use '../../../css/common.color.scss' as *;

.design-component {
  width: 100%;
  height: 100%;
  background-color: #fff;

  .title-tab {
    position: sticky;
    top: 0;
    z-index: 999;
    background-color: #fff;
    line-height: 40px;
    border-bottom: 1px solid $bg-color;
    font-weight: bold;
    font-size: 16px;
    padding-left: 10px;
  }

  .left {
    flex: 0 0 300px;
    border: 2px solid $bg-color;

    .collapse {
      width: 280px;
    }
  }

  .center {
    width: calc(100% - 600px);
    min-width: 540px;
    border: 2px solid $bg-color;
    background-color: $bg-color;
    border-left: 0;

    .tap {
      width: 100%;
      background-color: #fff;
      height: 40px;
      line-height: 40px;
      padding: 0 20px;

      .draw-type {
        line-height: 40px;
        height: 35px;
      }
    }

    .box {
      width: 100%;
      height: 100%;
      padding: 20px;


      .common-style {
        position: relative;
        overflow: auto;
        scrollbar-width: 'thin';
        scrollbar-gutter: 'stable';
      }

      /* 整个滚动条 */
      .common-style::-webkit-scrollbar {
        width: 8px;
        height: 8px;
      }

      /* 滚动条轨道 */
      .common-style::-webkit-scrollbar-track {
        background: rgb(239, 239, 239);
        border-radius: 2px;
      }

      /* 滚动条上的滑块 */
      .common-style::-webkit-scrollbar-thumb {
        background: #bfbfbf;
        border-radius: 10px;
      }

      /* 滚动条滑块悬停时的样式 */
      .common-style::-webkit-scrollbar-thumb:hover {
        background: #333;
      }

      /* 右下角滚动条交汇处的拖动块 */
      .common-style::-webkit-scrollbar-corner {
        background: #179a16;
      }

      .computer {
        @extend .common-style;
        width: 100%;
        height: 100%;
        background-color: #fff;

      }

      .phone {
        width: 340px;
        height: 620px;
        background-color: #fff;
        border-radius: 40px;
        padding: 20px;
        @extend .common-style;
      }
    }
  }

  .right {
    border: 2px solid $bg-color;
    border-left: 0;
    flex: 0 0 300px;

    .form {
      padding: 10px;
    }

    .layout {}
  }
}